define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//已售订单
			prosaleorder: function(nPage, act_id, callback, calldone) {
				Http.post({
					method: "marketing.promotion.orderList",
					act_id: act_id,
					nPage: nPage,
					pagelimit: 10
				}, function(result) {
					if(callback)
						callback(result);
				}, function(e) {

				}, function() {
					if(calldone)
						calldone();
				})
			}

		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Prosaleorder", factory);
});